package ctn.event.processor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import ctn.contant.PlugContant;
import ctn.dao.inteface.CPAInfoDao;
import ctn.event.CTNEventDelete;
import ctn.hibernate.po.CtnCpaInfo;
@Component(value="deleteProcessor")
public class DeleteProcessor implements EventProcessor<CTNEventDelete> {
	@Autowired
	private CPAInfoDao cPAInfoDaoImpl;
	@Override
	public void process(CTNEventDelete event) {
		cPAInfoDaoImpl.updateCpaVerStatus(event.getVerID(),PlugContant.STATUS_CLOSE);
		
	}

}
